<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>
<!DOCTYPE html>
<html lang="en">
<head>
<title>myCalendar: <c:out value="${pageTitle}" />
</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<c:url var="cssUrl" value="/assets/bootstrap/css/bootstrap.min.css" />
<link href="${cssUrl}" rel="stylesheet" />
<script src="/springapp/assets/jquery/jquery.js"></script>
<script src="/springapp/assets/bootstrap/js/bootstrap.min.js"></script>
<style>
body {
  padding-top: 60px;
  /* 60px to make the container go all the way to the bottom of the topbar */
}
</style>

</head>
<body>
  <!--   <div id="nav-bar" class="navbar navbar-fixed-top"> -->
  <!--     <div class="navbar-inner"> -->
  <!--       <div class="container"> -->
  <%--         <c:url var="welcomeUrl" value="/" /> --%>
  <%--         <a class="brand" href="${welcomeUrl}">myCalendar</a> --%>
  <!--         <div class="nav-collapse"> -->
  <!--           <ul class="nav"> -->
  <%--             <li><a id="navWelcomeLink" href="${welcomeUrl}">Welcome</a></li> --%>
  <%--             <c:url var="eventsUrl" value="/events/" /> --%>
  <%--             <li><a id="navEventsLink" href="${eventsUrl}">All Events</a></li> --%>
  <%--             <c:url var="myEventsUrl" value="/events/my" /> --%>
  <%--             <li><a id="navMyEventsLink" href="${myEventsUrl}">My Events</a></li> --%>
  <%--             <c:url var="createEventUrl" value="/events/form" /> --%>
  <%--             <li><a id="navCreateEventLink" href="${createEventUrl}">Create --%>
  <!--                 Event</a></li> -->
  <%--             <c:url var="h2ConsoleUrl" value="/admin/h2" /> --%>
  <%--             <li><a id="navH2Link" href="${h2ConsoleUrl}">H2</a></li> --%>
  <!--           </ul> -->
  <!--         </div> -->
  <!--         <div id="nav-account" class="nav-collapse pull-right"> -->
  <!--           <ul class="nav"> -->
  <%--             <sec:authorize access="authenticated" var="authenticated" /> --%>
  <%--             <c:choose> --%>
  <%--               <c:when test="${authenticated}"> --%>
  <!--                 <li id="greeting"><div> -->
  <!--                     Welcome -->
  <%--                     <sec:authentication property="name" /> --%>
  <!--                   </div></li> -->
  <%--                 <c:url var="logoutUrl" value="/logout" /> --%>
  <%--                 <li><a id="navLogoutLink" href="${logoutUrl}">Logout</a></li> --%>
  <%--               </c:when> --%>
  <%--               <c:otherwise> --%>
  <%--                 <c:url var="loginUrl" value="/login/form" /> --%>
  <%--                 <li><a id="navLoginLink" href="${loginUrl}">Login</a></li> --%>
  <%--               </c:otherwise> --%>
  <%--             </c:choose> --%>
  <!--           </ul> -->
  <!--         </div> -->
  <!--       </div> -->
  <!--     </div> -->

  <!--   </div> -->

  <!-- Fixed navbar -->
  <div class="navbar navbar-default navbar-fixed-top" role="navigation">
    <div class="container">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse"
          data-target=".navbar-collapse">
          <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span>
          <span class="icon-bar"></span> <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="#">Springapp Project</a>
      </div>
      <div class="navbar-collapse collapse">
        <ul class="nav navbar-nav">
          <li class="active"><a href="#">Home</a></li>
          <li><a href="#about">About</a></li>
          <li><a href="#contact">Contact</a></li>
          <li class="dropdown"><a href="#" class="dropdown-toggle"
            data-toggle="dropdown">Dropdown <b class="caret"></b></a>
            <ul class="dropdown-menu">
              <li><a href="#">Action</a></li>
              <li><a href="#">Another action</a></li>
              <li><a href="#">Something else here</a></li>
              <li class="divider"></li>
              <li class="dropdown-header">Nav header</li>
              <li><a href="#">Separated link</a></li>
              <li><a href="#">One more separated link</a></li>
            </ul></li>
        </ul>
        <ul class="nav navbar-nav navbar-right">
          <!--           <li><a href="../navbar/">Default</a></li> -->
          <!--           <li><a href="../navbar-static-top/">Static top</a></li> -->
          <!--           <li class="active"><a href="./">Fixed top</a></li> -->

          <sec:authorize access="authenticated" var="authenticated" />
          <c:choose>
            <c:when test="${authenticated}">
              <li id="greeting">Welcome&nbsp;<sec:authentication property="name" /></li>
              <c:url var="logoutUrl" value="/j_spring_security_logout" />
              <li><a id="navLogoutLink" href="${logoutUrl}">Logout</a></li>
            </c:when>
            <c:otherwise>
              <c:url var="loginUrl" value="/login" />
              <li><a id="navLoginLink" href="${loginUrl}">Login</a></li>
            </c:otherwise>
          </c:choose>
        </ul>

      </div>
      <!--/.nav-collapse -->
    </div>
  </div>







  <div class="container">
    <c:if test="${message != null}">
      <div class="alert alert-success" id="message">
        <c:out value="${message}" />
      </div>
    </c:if>
    <h1 id="title">
      <c:out value="${pageTitle}" />
    </h1>